package com.liuyao;


import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.B4AClass;
import anywheresoftware.b4a.debug.*;

public class liuyao extends B4AClass.ImplB4AClass implements BA.SubDelegator{
    private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
    private void innerInitialize(BA _ba) throws Exception {
        if (ba == null) {
            ba = new  anywheresoftware.b4a.ShellBA("com.liuyao", "com.liuyao.liuyao", this);
            if (htSubs == null) {
                ba.loadHtSubs(this.getClass());
                htSubs = ba.htSubs;
            }
            ba.htSubs = htSubs;
             if (BA.isShellModeRuntimeCheck(ba)) {
			    ba.raiseEvent2(null, true, "CREATE", true, "com.liuyao.liuyao",
                    ba);
				return;
		    }
        }
        ba.raiseEvent2(null, true, "class_globals", false);
    }

 
    public void  innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
        innerInitialize(_ba);
    }
    public Object callSub(String sub, Object sender, Object[] args) throws Exception {
        return BA.SubDelegator.SubNotFound;
    }
public anywheresoftware.b4a.keywords.Common __c = null;
public String[] _s60jz = null;
public String[] _stiangan = null;
public String[] _sdizhi = null;
public com.liuyao.main _main = null;
public String  _initialize(com.liuyao.liuyao __ref,anywheresoftware.b4a.BA _ba) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="liuyao";
RDebugUtils.currentLine=9;
 //BA.debugLineNum = 9;BA.debugLine="Public Sub Initialize";
RDebugUtils.currentLine=10;
 //BA.debugLineNum = 10;BA.debugLine="s60jz=Array As String(\"甲子\",\"乙丑\",\"丙寅\",\"丁卯\",\"戊辰\",\"己";
__ref._s60jz = new String[]{"甲子","乙丑","丙寅","丁卯","戊辰","己巳","庚午","辛未","壬申","癸酉","甲戌","乙亥","丙子","丁丑","戊寅","己卯","庚辰","辛巳","壬午","癸未","甲申","乙酉","丙戌","丁亥","戊子","己丑","庚寅","辛卯","壬辰","癸巳","甲午","乙未","丙申","丁酉","戊戌","己亥","庚子","辛丑","壬寅","癸卯","甲辰","乙巳","丙午","丁未","戊申","己酉","庚戌","辛亥","壬子","癸丑","甲寅","乙卯","丙辰","丁巳","戊午","己未","庚申","辛酉","壬戌","癸亥","癸亥"};
RDebugUtils.currentLine=11;
 //BA.debugLineNum = 11;BA.debugLine="sTiangan=Array As String(\"甲\", \"乙\", \"丙\", \"丁\", \"戊\",";
__ref._stiangan = new String[]{"甲","乙","丙","丁","戊","己","庚","辛","壬","癸"};
RDebugUtils.currentLine=12;
 //BA.debugLineNum = 12;BA.debugLine="sDizhi=Array As String(\"子\", \"丑\", \"寅\", \"卯\", \"辰\", \"";
__ref._sdizhi = new String[]{"子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"};
RDebugUtils.currentLine=13;
 //BA.debugLineNum = 13;BA.debugLine="End Sub";
return "";
}
public String[]  _date2gz(com.liuyao.liuyao __ref,int[] _date) throws Exception{
__ref = this;
RDebugUtils.currentModule="liuyao";
int _n = 0;
int _y = 0;
int _r = 0;
String _sn = "";
String _sy = "";
String _sr = "";
String[] _ret = null;
RDebugUtils.currentLine=15;
 //BA.debugLineNum = 15;BA.debugLine="public Sub date2gz(date() As Int) As String()";
RDebugUtils.currentLine=16;
 //BA.debugLineNum = 16;BA.debugLine="Dim n,y,r As Int";
_n = 0;
_y = 0;
_r = 0;
RDebugUtils.currentLine=17;
 //BA.debugLineNum = 17;BA.debugLine="Dim sn,sy,sr As String";
_sn = "";
_sy = "";
_sr = "";
RDebugUtils.currentLine=18;
 //BA.debugLineNum = 18;BA.debugLine="Dim ret() As String";
_ret = new String[(int) (0)];
java.util.Arrays.fill(_ret,"");
RDebugUtils.currentLine=19;
 //BA.debugLineNum = 19;BA.debugLine="n=date(0)";
_n = _date[(int) (0)];
RDebugUtils.currentLine=20;
 //BA.debugLineNum = 20;BA.debugLine="n=n mod 60";
_n = (int) (_n%60);
RDebugUtils.currentLine=21;
 //BA.debugLineNum = 21;BA.debugLine="If n<4 Then n=n+60";
if (_n<4) { 
_n = (int) (_n+60);};
RDebugUtils.currentLine=22;
 //BA.debugLineNum = 22;BA.debugLine="n=n-4";
_n = (int) (_n-4);
RDebugUtils.currentLine=23;
 //BA.debugLineNum = 23;BA.debugLine="sn=getsGz(n)";
_sn = __ref._getsgz(null,_n);
RDebugUtils.currentLine=24;
 //BA.debugLineNum = 24;BA.debugLine="Log(sn)";
__c.Log(_sn);
RDebugUtils.currentLine=25;
 //BA.debugLineNum = 25;BA.debugLine="ret=Array As String(sn)";
_ret = new String[]{_sn};
RDebugUtils.currentLine=26;
 //BA.debugLineNum = 26;BA.debugLine="Return ret";
if (true) return _ret;
RDebugUtils.currentLine=27;
 //BA.debugLineNum = 27;BA.debugLine="End Sub";
return null;
}
public String  _getsgz(com.liuyao.liuyao __ref,int _idx) throws Exception{
__ref = this;
RDebugUtils.currentModule="liuyao";
RDebugUtils.currentLine=29;
 //BA.debugLineNum = 29;BA.debugLine="public Sub getsGz(idx As Int) As String";
RDebugUtils.currentLine=30;
 //BA.debugLineNum = 30;BA.debugLine="If idx>-1 And idx<60 Then";
if (_idx>-1 && _idx<60) { 
RDebugUtils.currentLine=31;
 //BA.debugLineNum = 31;BA.debugLine="Return s60jz(idx)";
if (true) return __ref._s60jz[_idx];
 }else {
RDebugUtils.currentLine=33;
 //BA.debugLineNum = 33;BA.debugLine="Return \"ErrIdx\"";
if (true) return "ErrIdx";
 };
RDebugUtils.currentLine=36;
 //BA.debugLineNum = 36;BA.debugLine="End Sub";
return "";
}
}